package com.hxzy.bean;

import java.time.LocalDateTime;

public class Discuss {
    private Integer id;
    private String content;
    private LocalDateTime date;
    private Message message;
    private User user;

    @Override
    public String toString() {
        return "Discuss{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", date=" + date +
                ", message=" + message +
                ", user=" + user +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getDate() {
        return date;
    }

    public void setDate(LocalDateTime date) {
        this.date = date;
    }

    public Message getMessage() {
        return message;
    }

    public void setMessage(Message message) {
        this.message = message;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Discuss() {
    }

    public Discuss(Integer id, String content, LocalDateTime date, Message message, User user) {
        this.id = id;
        this.content = content;
        this.date = date;
        this.message = message;
        this.user = user;
    }
}
